﻿function PagingList(catid, pageindex) {

    $.ajax({
        url: "/ajax/applist.aspx",
        type: "POST",
        data: { "cat_id": catid, "pageindex": pageindex },
        cache: false,
        beforeSend: function () {
            //$('#' + tabname).html("<div style='text-align:center; width:100%; padding:20px; float:left'><img src='/images/loader.gif' /><div>");
            $('#divLoadding').attr('display:none');
        },
        success: function (data) {
            $('.card-list').html
        }
    });
}

function GetListApp(catid) {
    
    pageIndex++;
    if (pageIndex > 1) {
        $("#divLoadding").show();
        $.ajax({
            type: "GET",
            url: "/ajax/applist.aspx",
            data: { "cat_id": catid, "pageindex": pageIndex },
            success: OnSuccess,
            failure: function (response) {
                alert(response.d);
            },
            error: function (response) {
                alert(response.d);
            }
        });
    }
}

function OnSuccess(response) {
    $('.card-list').append(response);
    $("#divLoadding").hide();
}
function MenuActive() {
    $("#gn-" + cat_displayurl + " a").addClass("active");
}
function MenuAppActive() {
    $("#li-" + cat_id).addClass("active");
}

